package ${package}.exception;

public class BusinessException extends RuntimeException {
	
    private static final long serialVersionUID = -2985839409572653967L;

    private int               httpStatusCode;

    public BusinessException(String message, Throwable cause, int httpStatusCode) {
        super(message, cause);
        this.httpStatusCode = httpStatusCode;
    }

    public BusinessException(String message, int httpStatusCode) {
        super(message);
        this.httpStatusCode = httpStatusCode;
    }

    public int getHttpStatusCode() {
        return httpStatusCode;
    }
}
